package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.BzOrderMapper;
import com.ruoyi.order.domain.BzOrder;
import com.ruoyi.order.service.IBzOrderService;

/**
 * 订单明细Service业务层处理
 * 
 * @author ericyu
 * @date 2021-11-25
 */
@Service
public class BzOrderServiceImpl implements IBzOrderService 
{
    @Autowired
    private BzOrderMapper bzOrderMapper;

    /**
     * 查询订单明细
     * 
     * @param orderId 订单明细主键
     * @return 订单明细
     */
    @Override
    public BzOrder selectBzOrderByOrderId(Long orderId)
    {
        return bzOrderMapper.selectBzOrderByOrderId(orderId);
    }

    /**
     * 查询订单明细列表
     * 
     * @param bzOrder 订单明细
     * @return 订单明细
     */
    @Override
    public List<BzOrder> selectBzOrderList(BzOrder bzOrder)
    {
        return bzOrderMapper.selectBzOrderList(bzOrder);
    }

    /**
     * 新增订单明细
     * 
     * @param bzOrder 订单明细
     * @return 结果
     */
    @Override
    public int insertBzOrder(BzOrder bzOrder)
    {
        return bzOrderMapper.insertBzOrder(bzOrder);
    }

    /**
     * 修改订单明细
     * 
     * @param bzOrder 订单明细
     * @return 结果
     */
    @Override
    public int updateBzOrder(BzOrder bzOrder)
    {
        return bzOrderMapper.updateBzOrder(bzOrder);
    }

    /**
     * 批量删除订单明细
     * 
     * @param orderIds 需要删除的订单明细主键
     * @return 结果
     */
    @Override
    public int deleteBzOrderByOrderIds(Long[] orderIds)
    {
        return bzOrderMapper.deleteBzOrderByOrderIds(orderIds);
    }

    /**
     * 删除订单明细信息
     * 
     * @param orderId 订单明细主键
     * @return 结果
     */
    @Override
    public int deleteBzOrderByOrderId(Long orderId)
    {
        return bzOrderMapper.deleteBzOrderByOrderId(orderId);
    }
}
